package com.fc.happyteam.entity;

import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by futurecreative on 2017/8/4.
 */
public class SkuPriceEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * price ID
     */
    private Long priceId;

    /**
     * sku ID
     */
    private Long skuId;

    /**
     * 货币
     */
    private String currency;

    /**
     * 名称
     */
    private String priceName;

    /**
     * 价格
     */
    @Range(message = "price必须大于0且不能超过999999.99", min = 0, max = 999999)
    private BigDecimal price;

    @Range(message = "price必须大于0且不能超过999999.99", min = 0, max = 999999)
    private BigDecimal settlePrice;
    /**
     * 时间，比如一小时
     */
    private String duration;

    /**
     * 从...开始
     */
    private Integer from;

    /**
     * 到...结束
     */
    private Integer to;

    public Long getPriceId() {
        return priceId;
    }

    public void setPriceId(Long priceId) {
        this.priceId = priceId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getPriceName() {
        return priceName;
    }

    public void setPriceName(String priceName) {
        this.priceName = priceName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getSettlePrice() {
        return settlePrice;
    }

    public void setSettlePrice(BigDecimal settlePrice) {
        this.settlePrice = settlePrice;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public Integer getFrom() {
        return from;
    }

    public void setFrom(Integer from) {
        this.from = from;
    }

    public Integer getTo() {
        return to;
    }

    public void setTo(Integer to) {
        this.to = to;
    }
}
